package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 * 
 * @author Steven Cozart
 * @date 7/15/2011
 */
@SuppressWarnings("serial")
public class RiskMenu extends JMenuBar {
	
	private  String TACO = "taco"; 
	
	public RiskMenu (){
		super();
		
		JMenu file = new JMenu("File");
		file.setMnemonic('f');
		
		JMenuItem exit = new JMenuItem("Exit");
		
		class ExitAction implements ActionListener{

			@Override
			public void actionPerformed(ActionEvent arg0) {
				System.exit(0);
				
			}
			
		}
		exit.addActionListener(new ExitAction());
		exit.setMnemonic('e');
		
		file.add(exit);
		
		JMenuItem newGame = new JMenuItem("New");
		
		class newGameAction implements ActionListener{

			@Override
			public void actionPerformed(ActionEvent arg0) {
				 
				//TODO make newGame
				

				System.out.println("make me tacos");
			}
			
		}
		newGame.addActionListener(new newGameAction());
		newGame.setMnemonic('n');
		
		file.add(newGame);
		file.add(exit);
		
	
		add(file);
	}

}
